package com.dw.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: User.java
 * @Description: 测试用户实体
 * @author: wangxingchao
 * @date: 2015年7月8日 上午9:44:22
 */
@Entity
@Table(name = "user")
public class User extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6008280417710663202L;
	
	@Id
	@GeneratedValue(generator = "user-uid")
	@GenericGenerator(name="user-uid",strategy = "identity")
	@Column(name = "id")
	private Integer id;
	
	@Column(name = "name")
	private String name;
	
	
	@Column(name = "age")
	private Integer age;
	
	
	@Column(name="birthday",length = 19)
	private Date birthday;
	
	
	@Column(name="address")
	private String address;
	
	@Column(name="password")
	private String password;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
}
